<?php


namespace App\Services\Business\Models;

use App\Services\Business\Models\Base;
use App\Services\Member\Models\Activity;
use App\Services\Member\Models\User;


class UserImage extends Base
{


    protected $table = 'user_image';

    protected $fillable = [
        'user_id', 'conquer_id','activity_id','image_id','to_id'
    ];



    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }

    public function conquer()
    {
        return $this->belongsTo(Conquer::class, 'conquer_id');
    }

    public function image()
    {
        return $this->belongsTo(Image::class, 'image_id');
    }


    public function toer()
    {
        return $this->belongsTo(User::class, 'to_id');
    }

    public function activity()
    {
        return $this->belongsTo(Activity::class, 'activity_id');
    }




}
